/*******************************************************************************************
 *  Vanish.c
 *
 *  Creating and managing Vanish object structures.
 *
 *******************************************************************************************/







/*******************************************************************************************
 *  INCLUDES :
 *******************************************************************************************/

/* System and library related : */
#include <stdlib.h>
#include <stdio.h>

/* Project related : */
#include "Vanish.h"







/*******************************************************************************************
 *  FUNCTIONS :
 *******************************************************************************************/

/*******************************************************************************************
 *  NEWVANISH : Creates an empty Vanish object structure.
 *******************************************************************************************/
Vanish *newVanish(void) {
	Vanish *v;

	/* Creating the container structure : */
	v = (Vanish *)malloc(sizeof(Vanish));


	/* Setting the object's type : */
	v->otype = vanish;


	/* Returning the still empty structure : */
	return v;

}




/*******************************************************************************************
 *  FREEVANISH : destroys a Vanish object structure.
 *******************************************************************************************/
void freeVanish(Vanish *v) {
	free(v);				/* Free the object itself. */
}